<?php

function open()
    {
        $conexion = new PDO('mysql:host=localhost;dbname=kasai', "root", '1234');
        $conexion->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);        
        //$query=$conexion->prepare($statement);
        //$query->bindParam(1, $id, PDO::PARAM_INT);
        //$query->fetch(PDO::FETCH_BOUND);
        return $conexion;
    }
   
    function close() {
        return null;    
    }

?>
